<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			function Grand(){}
			
			var grand = new Grand();
			console.log(grand);
			Father.prototype = grand;
			function Father(){
				this.name="json"
			}
			var father = new Father();
			console.log(father);
			Son.prototype = father;
			function Son(){}
			console.log(father);
			var son = new Son();
			
		</script>
	</body>
</html>
